home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
9-Digit Zip Code Directory
/
9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO
/
z4src.zip
/
COMPRESS.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-21
|
3KB
|
127 lines
#ifndef _COMPRESS_H_
#define _COMPRESS_H_
//----------------------------------------------------------------------------
// MODULE DESCRIPTION
//
// Module: compress.h
// Title: Compress Library
// Notice: John M. Weeder
// Copyright (c) 1993. All rights reserved.
// This module contains proprietary information and should be
// treated as confidential.
//
//----------------------------------------------------------------------------
// MAINTENANCE HISTORY
//
// $Workfile$
// $Revision$
// $Author$
// $Date$
// $Log$
//
//----------------------------------------------------------------------------
// MODULE NARRATIVE
//
//
// This module is the header file for the various data compression
// utilities.
//
// The code in this module should be written entirely in C.
// Do not use any C++ constructs.
//
// This module is portable to:
// DOS 3.X+
// MS Windows 3.X+
// OS/2 2.X+
// OS/2 2.0 PM
// SCO UNIX.
//
// The following compilers are supported:
// MSC 6.0A
// MSC/C++ 7.0
// Borland C++ 3.1 for DOS
// Borland C++ 1.0 for OS/2 2.X
// SCO UNIX cc
//
//----------------------------------------------------------------------------
#include <dio.h>
//----------------------------------------------------------------------------
// Data types
//----------------------------------------------------------------------------
typedef struct _CP__ARITH // Arithmetic encoder frequency table
{ // Last element should have null string
SIZET cFreq; // Frequency
CHAR szSymbol[4]; // Up to 3 character symbol && null
SIZET cLen;
} CP_ARITH;
BASETYPE(CP_ARITH);
#define CP_WORD_VERIFY (0x0001)
//----------------------------------------------------------------------------
// Prototypes
//----------------------------------------------------------------------------
#if COMPILE_CPP
extern "C"
{
#endif
//
// cparith.c
//
VOID FN_E ArithAdjust(PCP_ARITH, PSZ);
BOOL FN_E ArithDecode(PBYTE, PSIZET, PCHAR);
BOOL FN_E ArithEncode(PBYTE, PSIZET, PSZ);
BOOL FN_E ArithInitialize(PCP_ARITH);
//
// cpascii.c
//
BOOL FN_E AsciiDecode(PBYTE, PSIZET, PCHAR);
BOOL FN_E AsciiEncode(PBYTE, PSIZET, PCSZ);
//
// cpnybble.c
//
BOOL FN_E NybbleDecode(PBYTE, PSIZET, PCHAR);
BOOL FN_E NybbleEncode(PBYTE, PSIZET, PCSZ);
//
// cprecid.c
//
BOOL FN_E RecIdDecode(PRECID, SIZET, PBYTE, SIZET, PSIZET, PRECID);
BOOL FN_E RecIdEncode(PRECID, SIZET, PBYTE, SIZET, PSIZET, PRECID);
//
// cpstring.c
//
#define StringCreate(x,y) WordCreate(x,y)
BOOL FN_E StringDecode(PVOID, PBYTE, PSIZET, PCHAR);
#define StringDestroy(x) WordDestroy(x)
BOOL FN_E StringEncode(PVOID, PBYTE, PSIZET, PCSZ);
#define StringReset(x) WordReset(x)
//
// cpword.c
//
PVOID FN_E WordCreate(SIZET, FLAG16);
PCSZ FN_E WordDecode(PVOID, BYTE);
BOOL FN_E WordDestroy(PVOID);
BYTE FN_E WordEncode(PVOID, PCSZ, BOOL);
BOOL FN_E WordReset(PVOID);
#if COMPILE_CPP
}
#endif
//----------------------------------------------------------------------------
//------------------------------- End of File --------------------------------
//----------------------------------------------------------------------------
#endif // _COMPRESS_H_